package com.hsnn.medstgmini.settlement.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hsnn.medstgmini.util.FormatDate;
import com.hsnn.medstgmini.util.ParseNumber;


/**
 * @category 支付单实体类
 * @author 韩守松
 * @date 2015年7月27日
 */
@Entity
@Table(name="set_payment")
public class SetPayment {
	private String paymentBillId;//支付单id	
	private String paymentBillCode;//支付单编码	
	private String paymentBillName;//支付单名称	
	private Integer totalOrders;//总条目数	
	private Double totalAmount;//总金额	
	private String totalAmountStr;//格式化总金额
	private Date createDatetime;//创建时间	
	private String createDatetimeStr;//格式化创建时间
	private String createUser;//创建人	
	private String remark;//备注	
	private String submitUser;//提交人	
	private Date submitDatetime;//提交时间	
	private String submitDatetimeStr;//格式化提交时间
	private Integer status;//状态0未提交1已提交2通过3不通过4复审通过5复审不通过6确认支付	
	private Date auditDatetime;//审核时间	
	private String auditDatetimeStr;//格式化审核时间
	private String auditUser;//审核人	
	private String auditRemark;//审核备注	
	private Date reauditDatetime;//领导复审时间	
	private String reauditDatetimeStr;//格式化领导复审时间
	private String reauditUser;//领导复审人	
	private String reauditRemark;//领导复审备注	
	private Date billSettleDatetime;//支付时间
	private String billSettleDatetimeStr;//格式化支付时间
	private String billSettleUser;//支付人	
	private Date updDatetime;//更新时间	
	private String updDatetimeStr;//格式化更新时间
	private String updUser;//更新人	
	
	@Id
	@Column(name="payment_bill_id")
	public String getPaymentBillId() {
		return paymentBillId;
	}
	public void setPaymentBillId(String paymentBillId) {
		this.paymentBillId = paymentBillId;
	}
	
	@Column(name="payment_bill_code")
	public String getPaymentBillCode() {
		return paymentBillCode;
	}
	public void setPaymentBillCode(String paymentBillCode) {
		this.paymentBillCode = paymentBillCode;
	}
	
	@Column(name="payment_bill_name")
	public String getPaymentBillName() {
		return paymentBillName;
	}
	public void setPaymentBillName(String paymentBillName) {
		this.paymentBillName = paymentBillName;
	}

	@Column(name="total_orders")
	public Integer getTotalOrders() {
		return totalOrders;
	}
	public void setTotalOrders(Integer totalOrders) {
		this.totalOrders = totalOrders;
	}

	@Column(name="total_amount")
	public Double getTotalAmount() {
		return totalAmount;
	}
	public void setTotalAmount(Double totalAmount) {
		this.totalAmount = totalAmount;
	}

	@Transient
	public String getTotalAmountStr() {
		if(totalAmount != null){
			totalAmountStr =ParseNumber.toStrDecimal(totalAmount);
		}
		return totalAmountStr;
	}
	public void setTotalAmountStr(String totalAmountStr) {
		this.totalAmountStr = totalAmountStr;
	}

	@Column(name="create_datetime")
	public Date getCreateDatetime() {
		return createDatetime;
	}
	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}

	@Transient
	public String getCreateDatetimeStr() {
		if(createDatetime != null){
			createDatetimeStr = FormatDate.toFullFormat(createDatetime);
		}
		return createDatetimeStr;
	}
	public void setCreateDatetimeStr(String createDatetimeStr) {
		this.createDatetimeStr = createDatetimeStr;
	}

	@Column(name="create_user")
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	@Column(name="remark")
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name="submit_user")
	public String getSubmitUser() {
		return submitUser;
	}
	public void setSubmitUser(String submitUser) {
		this.submitUser = submitUser;
	}

	@Column(name="submit_datetime")
	public Date getSubmitDatetime() {
		return submitDatetime;
	}
	public void setSubmitDatetime(Date submitDatetime) {
		this.submitDatetime = submitDatetime;
	}

	@Transient
	public String getSubmitDatetimeStr() {
		if(submitDatetime != null){
			submitDatetimeStr = FormatDate.toFullFormat(submitDatetime);
		}
		return submitDatetimeStr;
	}
	public void setSubmitDatetimeStr(String submitDatetimeStr) {
		this.submitDatetimeStr = submitDatetimeStr;
	}

	@Column(name="status")
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name="audit_datetime")
	public Date getAuditDatetime() {
		return auditDatetime;
	}
	public void setAuditDatetime(Date auditDatetime) {
		this.auditDatetime = auditDatetime;
	}

	@Transient
	public String getAuditDatetimeStr() {
		if(auditDatetime != null){
			auditDatetimeStr = FormatDate.toFullFormat(auditDatetime);
		}
		return auditDatetimeStr;
	}
	public void setAuditDatetimeStr(String auditDatetimeStr) {
		this.auditDatetimeStr = auditDatetimeStr;
	}

	@Column(name="audit_user")
	public String getAuditUser() {
		return auditUser;
	}
	public void setAuditUser(String auditUser) {
		this.auditUser = auditUser;
	}

	@Column(name="audit_remark")
	public String getAuditRemark() {
		return auditRemark;
	}
	public void setAuditRemark(String auditRemark) {
		this.auditRemark = auditRemark;
	}

	@Column(name="reaudit_datetime")
	public Date getReauditDatetime() {
		return reauditDatetime;
	}
	public void setReauditDatetime(Date reauditDatetime) {
		this.reauditDatetime = reauditDatetime;
	}

	@Transient
	public String getReauditDatetimeStr() {
		if(reauditDatetime != null){
			reauditDatetimeStr = FormatDate.toFullFormat(reauditDatetime);
		}
		return reauditDatetimeStr;
	}
	public void setReauditDatetimeStr(String reauditDatetimeStr) {
		this.reauditDatetimeStr = reauditDatetimeStr;
	}

	@Column(name="reaudit_user")
	public String getReauditUser() {
		return reauditUser;
	}
	public void setReauditUser(String reauditUser) {
		this.reauditUser = reauditUser;
	}

	@Column(name="reaudit_remark")
	public String getReauditRemark() {
		return reauditRemark;
	}
	public void setReauditRemark(String reauditRemark) {
		this.reauditRemark = reauditRemark;
	}

	@Column(name="bill_settle_datetime")
	public Date getBillSettleDatetime() {
		return billSettleDatetime;
	}
	public void setBillSettleDatetime(Date billSettleDatetime) {
		this.billSettleDatetime = billSettleDatetime;
	}

	@Transient
	public String getBillSettleDatetimeStr() {
		if(billSettleDatetime != null){
			billSettleDatetimeStr = FormatDate.toFullFormat(billSettleDatetime);
		}
		return billSettleDatetimeStr;
	}
	public void setBillSettleDatetimeStr(String billSettleDatetimeStr) {
		this.billSettleDatetimeStr = billSettleDatetimeStr;
	}

	@Column(name="bill_settle_user")
	public String getBillSettleUser() {
		return billSettleUser;
	}
	public void setBillSettleUser(String billSettleUser) {
		this.billSettleUser = billSettleUser;
	}

	@Column(name="upd_datetime")
	public Date getUpdDatetime() {
		return updDatetime;
	}
	public void setUpdDatetime(Date updDatetime) {
		this.updDatetime = updDatetime;
	}

	@Transient
	public String getUpdDatetimeStr() {
		if(updDatetime != null){
			updDatetimeStr = FormatDate.toFullFormat(updDatetime);
		}
		return updDatetimeStr;
	}
	public void setUpdDatetimeStr(String updDatetimeStr) {
		this.updDatetimeStr = updDatetimeStr;
	}

	@Column(name="upd_user")
	public String getUpdUser() {
		return updUser;
	}
	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}
	
	
	
}